package com.neusoft.tijian.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.tijian.po.OverallResult;
import com.neusoft.tijian.service.OverallResultService;

@RestController
@RequestMapping("/overallResult")
/**
 * 医生端填写的，总检结论
 */
public class OverallResultController {

	@Autowired
	private OverallResultService overallResultService;

	/**
	 * 总检结论，标题和报告
	 * @param overallResult
	 * @return
	 */
	@RequestMapping("/listOverallResultByOrderId")
	public List<OverallResult> listOverallResultByOrderId(@RequestBody OverallResult overallResult) {
		return overallResultService.listOverallResultByOrderId(overallResult.getOrderId());
	}
}
